﻿@{
    Layout = "~/themes/default/Shared/_Layout.cshtml";
}
@using UcAsp.Net.Model;
@using UcAsp.Net.BLL;
@using UcAsp.Net.Comm
@using Config = UcAsp.Net.BLL.SettingConfig;
@{
    UcAsp.Net.Model.Categories cate = ViewData["Categories"] as UcAsp.Net.Model.Categories;
    ViewBag.Title = cate.CategorieName + cate.KeyWords;
    ViewBag.Keywords = cate.CategorieName + cate.KeyWords;
    ViewBag.Description = cate.CategorieName + cate.KeyWords + UcAsp.Net.Comm.Utils.RemoveHtml(cate.Remark);
    List<UcAsp.Net.Model.CategoriesTree> menulist = ViewData["ChildMenu"] as List<UcAsp.Net.Model.CategoriesTree>; 
}
<div class="container-fluid headerpath">
    @(new HtmlString(Categorie.MenuPath(cate.ID)))
</div>
<div class="small_categories">

    @foreach (UcAsp.Net.Model.CategoriesTree t in menulist)
    {
        <a href="/@t.ShowPath/index.shtml">@t.CategorieName</a>
    }
</div>
<div class="container-fluid">
    <!--div class="row-fluid">
        <div class="span12 adv2">
            <div id="fcbx">
                @(new HtmlString(AdvConfig.GetAdvPositions("AD2", cate.ID.ToString()).AdvHtml))
            </div>
        </div>
    </!--div>-->
    <div class="row-fluid">
        <div class="span8">
            @{
                foreach (UcAsp.Net.Model.Subjects subject in UcAsp.Net.BLL.SubjectsConfig.GetCategoriesSubjects(cate.ID, Config.Theme(Request.UserAgent)))
                {
                @RenderPage("~/themes/default/Subject/" + subject.Themes + ".cshtml", new { subject = subject, categories = cate });
                }
            }
        </div>
      <!--  <div class="span4">
            @(new HtmlString(AdvConfig.GetAdvPositions("AD4", Config.Theme(Request.UserAgent)).AdvHtml))
        </div>
          -->
    </div>
</div>
